package com.zonhar.autofeed.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zonhar.autofeed.common.enums.FeedTypeEnum;
import com.zonhar.autofeed.entities.dto.QueryPageDto;
import com.zonhar.autofeed.entities.entity.AutoFeedWeightEntity;
import com.zonhar.autofeed.common.exception.RaspberrypiException;

import java.util.Map;

/**
 * 保存自动称重
 * @author zonhar
 */
public interface AutoFeedWeightService extends IService<AutoFeedWeightEntity> {

    /**
     * 保存数据
     */
    AutoFeedWeightEntity saveInfo(FeedTypeEnum feedTypeEnum, long weight,Integer releaseNum) throws RaspberrypiException;

    /**
     * 小程序头数据
     * @return
     */
    Map<String, Object> getHeadStatusData();

    Page<AutoFeedWeightEntity> queryPage(QueryPageDto queryPageDto);

    Map<String, Object> getDashBoard();

}
